<?php

namespace App\Winged\Evaluation\Api ;


class Consult extends Api{

    public static $actions = [
        'sc_list' => 'consulting/get_service_compose_list', // 获取服务列表
        'sc_info' => 'consulting/get_service_compose_info', // 获取服务详情
        'up_sc_status' => 'consulting/update_sc_status',
        'get_form_info' => 'consulting/get_assessment_form_info',//获取评估表信息
        'up_form_info' => 'consulting/update_assessment_form_info', //更新评估表信息
        'get_conversion'  => 'consulting/get_consulting_conversions',//获取咨询会话记录
    ];

    /**
     * @param string $sc_status
     * @param string $patient_id
     * @param string $doctor_user_id
     * @param string $order_status
     * @param string $page_index
     * @param string $page_size
     * @return \Illuminate\Support\Collection|string
     */
    public static function getScList($data)
    {
        $default = [
            "user_id" => user_id() ,
            "sc_status" =>  "",
            "patient_id" => "",
            "doctor_user_id" => "" ,
            "order_status" =>  "",
            "page_index" => "0" ,
            "page_size" => "15" ,
            "search_key"    => "",
        ];
        return self::doPost('sc_list' ,array_merge($default,$data));
    }


}
